function ccReloadUI(msg, editbox)
	ReloadUI();
end

function ccR_Track(msg, editbox)
	TrackByName(msg)
end

function ccR_Script_Print(msg, editbox)
	return RunMacroText("/script print(" .. msg .. ")")
end

function ccrStartStop()
	RunMacroText("/ccr rotation")
end
function ccRCMD(msg,editbox)
	local command, rest = msg:match("^(%S*)%s*(.-)$");
	command = string.lower(command);
	if msg == "" then
		InterfaceOptionsFrame_OpenToCategory("ccR")
	end
	if command == "on" then
		PrintToChat("Enabled");
		ccRS.Enabled = true
	end
	if command == "off" then
		PrintToChat("Disabled");
		ccRS.Enabled = false
		ccrStart = false
	end
	if command == "autoaoe" then
		if ccRS.Auto_AoE then
			ccRS.Auto_AoE = false
			PrintToChat("Auto-AoE disabled")
		else
			ccRS.Auto_AoE = true
			ccRS.Manual_AoE = false
			PrintToChat("Auto-AoE enabled.")
		end
	end	
	if command == "rotation" then
		ccrStart = not ccrStart;
	end
	if command == "aoe" then
		if ccRS.Manual_AoE then
			PrintToChat("Single Target Mode")
			ccRS.Manual_AoE = false
		else
			PrintToChat("AoE Mode")
			ccRS.Manual_AoE = true
		end
	end
	if command == "debug" then
		if ccRS.Debug then
			PrintToChat("Debug disabled")
			ccRS.Debug = false
		else
			PrintToChat("Debug enabled")
			ccRS.Debug = true
		end
	end
	if command == "g1zstar" then if ccRS.UseAnkhyorG1zStar ~= 3 then ccRS.UseAnkhyorG1zStar = 3 end end
	if command == "ankhy" then	if ccRS.UseAnkhyorG1zStar ~= 2 then ccRS.UseAnkhyorG1zStar = 2 end end
end

